<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{layout :: css(~{::title},~{})}">
    <title>商品管理界面</title>
</head>
<body>
<div th:insert="~{layout::sidebar(activeURI='two')}"></div>

<div class="right">
    <div th:insert="~{GoodsTop::top(activeURI='two2')}"></div>
    <div style="float: right">

        <label> 搜索</label>
        <input type="text" style="width: 300px;height: 30px" placeholder="全局搜索" id="key">
        <button id="sou" value="搜索" style="background-color: #4CAF50;border: 0px;width: 40px;height: 30px;font-size: medium">搜</button>

    </div>
    <table border="1"  id="myTable">
        <thead>
        <tr>
            <th>商品ID</th>
            <th>所属品类</th>
            <th>销售价格</th>
            <th>进货价格</th>
            <th>状态</th>
            <th>属性</th>
            <th>库存</th>
            <th>编辑</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="orderVO,orderVOStat:${itemlist}" th:if="${orderVO.status} eq 'P'">
            <td th:text="${orderVO.itemid}"class="id"></td>
            <td th:text="${orderVO.productid}" ></td>
            <td th:text="${orderVO.listprice}"></td>
            <td th:text="${orderVO.unitcost}"></td>
            <td th:text="${orderVO.status}"></td>
            <td th:text="${orderVO.attr1}"></td>
            <td th:text="${inventorylist[orderVOStat.index].quantity}"></td>
            <td>
                <button class="bianji">编辑</button>
                <button class="xiajia">下架</button>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div id="submitForm"></div>
</body>
<script type="text/javascript" charset="UTF-8" src="js/itemm.js"></script>
<script type="text/javascript" charset="UTF-8" src="js/sousuo2.js"></script>
</html>